package com.ruoyi.bl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bl.mapper.BlActivityMapper;
import com.ruoyi.bl.domain.BlActivity;
import com.ruoyi.bl.service.IBlActivityService;

/**
 * 活动模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-16
 */
@Service
public class BlActivityServiceImpl implements IBlActivityService 
{
    @Autowired
    private BlActivityMapper blActivityMapper;

    /**
     * 查询活动模块
     * 
     * @param activityId 活动模块主键
     * @return 活动模块
     */
    @Override
    public BlActivity selectBlActivityByActivityId(Long activityId)
    {
        return blActivityMapper.selectBlActivityByActivityId(activityId);
    }

    /**
     * 查询活动模块列表
     * 
     * @param blActivity 活动模块
     * @return 活动模块
     */
    @Override
    public List<BlActivity> selectBlActivityList(BlActivity blActivity)
    {
        return blActivityMapper.selectBlActivityList(blActivity);
    }

    /**
     * 新增活动模块
     * 
     * @param blActivity 活动模块
     * @return 结果
     */
    @Override
    public int insertBlActivity(BlActivity blActivity)
    {
        return blActivityMapper.insertBlActivity(blActivity);
    }

    /**
     * 修改活动模块
     * 
     * @param blActivity 活动模块
     * @return 结果
     */
    @Override
    public int updateBlActivity(BlActivity blActivity)
    {
        return blActivityMapper.updateBlActivity(blActivity);
    }

    /**
     * 批量删除活动模块
     * 
     * @param activityIds 需要删除的活动模块主键
     * @return 结果
     */
    @Override
    public int deleteBlActivityByActivityIds(Long[] activityIds)
    {
        return blActivityMapper.deleteBlActivityByActivityIds(activityIds);
    }

    /**
     * 删除活动模块信息
     * 
     * @param activityId 活动模块主键
     * @return 结果
     */
    @Override
    public int deleteBlActivityByActivityId(Long activityId)
    {
        return blActivityMapper.deleteBlActivityByActivityId(activityId);
    }
}
